<script setup name="Dependencies">
import packageJson from '../../package.json';
const arr1 = [];

const map2array = (obj) => {
  let arr = [];
  for(let k in obj){
    arr.push({
      label: k,
      value:obj[k]
    })
  }
  return arr;
}

const dependencies = ref(map2array(packageJson.dependencies));
const devDependencies = ref(map2array(packageJson.devDependencies));
</script>

<template>
  <page-wrapper>
    <a-descriptions :data="dependencies" title="dependencies" bordered/>
    <a-descriptions :data="devDependencies" title="devDependencies" bordered class="mt-4"/>
  </page-wrapper>
</template>

<style lang="less" scoped>
</style>